.dashboard-container {
  padding: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin: 0;
  color: #1890ff;
  font-size: 28px;
  font-weight: 600;
}

.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.dashboard-loading p {
  margin-top: 16px;
  color: #666;
  font-size: 16px;
}

.stats-row {
  margin-bottom: 24px;
}

.stat-card {
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.data-sources-row {
  margin-bottom: 24px;
}

.data-source-card {
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.data-source-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.last-updated {
  font-size: 12px;
  color: #999;
}

.data-content {
  height: 200px;
  overflow: hidden;
}

.data-summary {
  margin-bottom: 12px;
}

.data-summary h4 {
  margin: 0 0 8px 0;
  color: #1890ff;
  font-size: 14px;
}

.data-summary p {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.data-preview {
  background: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  max-height: 120px;
  overflow: hidden;
}

.data-preview pre {
  margin: 0;
  font-size: 11px;
  color: #333;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.chart-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 16px;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .dashboard-header h1 {
    font-size: 24px;
  }
  
  .data-content {
    height: 150px;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 数据源类型颜色 */
.data-source-card[data-type="weather"] {
  border-left: 4px solid #1890ff;
}

.data-source-card[data-type="covid"] {
  border-left: 4px solid #ff4d4f;
}

.data-source-card[data-type="flu"] {
  border-left: 4px solid #fa8c16;
}

.data-source-card[data-type="traffic"] {
  border-left: 4px solid #52c41a;
}

.data-source-card[data-type="air_quality"] {
  border-left: 4px solid #722ed1;
}

.data-source-card[data-type="economic"] {
  border-left: 4px solid #13c2c2;
}
